import React from 'react';

import {BrowserRouter} from 'react-router-dom';

import RouterView from './routerView';

import routerConfig from './routerConfig';

function Router(){
    return <BrowserRouter>
        <RouterView routerConfig={routerConfig}></RouterView>
        {/* <Switch>
            <Route path="/official" component={Official}></Route>
            <Route path="/img" component={Img}></Route>
            <Route path="/car/:carid" component={Car}></Route>
            <Route path="/quotation" component={Quotation}></Route>
            <Redirect from="/" to="/official"></Redirect>
        </Switch> */}
    </BrowserRouter>
}

export default Router